<head>
    <title>作业一</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/default.min.css">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js"></script>
    <!-- and it's easy to individually load additional languages -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/languages/go.min.js"></script>
    <script>hljs.initHighlightingOnLoad();</script>
</head>
<pre>
    <code class="language-python">
from time import sleep

class Person:
    name: str
    age: int
    
    def __init__(self, name: str, age: int):
        self.name = name
        self.age = age

    def speak(self):
        print("我是%s, 今年%s岁了。" % (self.name, self.age))

class Student(Person):
    school: str
    id: str

    def __init__(self, name: str, age: int, school: str, _id: str):
        super(Student, self).__init__(name, age)
        self.school = school
        self.id = _id
    
    def speak(self):
        print("我是%s, 今年%s岁了, 我来自%s, 学号是%s。"
                % (self.name, self.age, self.school, self.id)
              )
    
    def run(self, v: int, times: int):
        return v * times


class CollegeStudent(Student):
    language: str

    def __init__(self, name: str, age: int, school: str, _id: str, languange: str):
        super().__init__(name, age, school, _id)
        self.language = languange
    
    def speak(self):
        print("我是%s, 今年%s岁了, 我来自%s, 学号是%s, 我会%s"
                % (self.name, self.age, self.school, self.id, self.language)
              )

    def coding(self):
        print("I am coding", end=" ")
        for i in range(10):
            print(".", end="")
            sleep(1)
            

if __name__ == "__main__":
    x = CollegeStudent('Jim', 18, 'Blueking', 200101, 'English')
    x.speak()
    x.coding()
    </code>
</pre>
